import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-07-12
 * Time: 9:05
 */
public class Test {
    public static void main(String[] args) {
        /*Queue<Integer> queue = new LinkedList<>();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        queue.offer(5);
        System.out.println(queue.poll());//1
        System.out.println(queue.size());//4
        System.out.println(queue.peek());//2
        System.out.println(queue.isEmpty());//false*/

        Deque<Integer> stack = new ArrayDeque<>();//双端队列的线型实现
        Deque<Integer> queue = new LinkedList<>();//双端队列的链式实现

    }
}
